package com.woniuxy.book87.mapper;

import com.woniuxy.book87.entity.Manager;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ManagerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Manager record);

    Manager selectByPrimaryKey(Long id);

    List<Manager> selectAll();

    int updateByPrimaryKey(Manager record);

    @Select("select * from t_manager where user_name=#{name} and user_password=#{pass}")
    Manager selectManagerByNameAndPass(@Param("name") String name, @Param("pass") String pass);
}